﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WL_Store.Model
{
    /// <summary>
    /// 订单管理
    /// </summary>
   public  class OrderFormModel
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string orderID { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string comName { get; set; }
        /// <summary>
        /// 商品总价
        /// </summary>
        public double totalPrice { get; set; }
        /// <summary>
        /// 商品类别
        /// </summary>
        public int categoryId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int amount { get; set; }
        /// <summary>
        /// 订单时间
        /// </summary>
        public DateTime orderTime { get; set; }
        /// <summary>
        /// 是否发货
        /// </summary>
        public bool  IsSendout { get; set; }

        public string  IsSendoutString { get
            {
                return IsSendout ? "已发货" : "未发货";
            }
                }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }

        public string IsDeleteString { get
            {
                return IsDelete ? "已删除" : "未删除";
            } }

    }
}
